package main;

import java.util.ArrayList;
import java.util.List;

import com.itextpdf.text.BaseColor;


public class DetailHeaderEx {
	String nameText;//表头列
	int colSpan;//合并列 合并两列为1
	int rowSpan;//合并行  合并两行为1
	int height;//行高
	int width;//行宽
	int fontSize;
	BaseColor fontColor;
	BaseColor fgColor;
	
	int HorAlignment;
	int verAlignment;
	
	String colName;
	String formatStr;
	SimpDataType dataType;
	String defValue;
	public DetailHeaderEx() {
		
	}
	public DetailHeaderEx(String nameText) {
		this.nameText=nameText;
		
	}
	public DetailHeaderEx(String nameText,int colSpan,int rowSpan,int height,int width,ColumnEx columnEx) {
		this.nameText=nameText;
		this.colSpan=colSpan;
		this.rowSpan=rowSpan;
		this.height=height;
		this.width=width;
	}
	public DetailHeaderEx(String nameText,int colSpan,int rowSpan,int height,int width,ColumnEx columnEx,int fontSize,BaseColor fontColor,BaseColor fgColor) {
		this.nameText=nameText;
		this.colSpan=colSpan;
		this.rowSpan=rowSpan;
		this.height=height;
		this.width=width;
		this.fontColor=fontColor;
		this.fontSize=fontSize;
		this.fgColor=fgColor;
	}
	public DetailHeaderEx(String nameText,int colSpan,int rowSpan) {
		this.nameText=nameText;
		this.colSpan=colSpan;
		this.rowSpan=rowSpan;
		
	}

	public DetailHeaderEx(String nameText,int colSpan,int rowSpan,int height,int width) {
		this.nameText=nameText;
		this.colSpan=colSpan;
		this.rowSpan=rowSpan;
		this.height=height;
		this.width=width;
		
	}
	public DetailHeaderEx(String nameText,int colSpan,int rowSpan,int height,int width,int fontSize) {
		this.nameText=nameText;
		this.colSpan=colSpan;
		this.rowSpan=rowSpan;
		this.height=height;
		this.width=width;
		this.fontSize=fontSize;
	}
	public DetailHeaderEx(String nameText,int colSpan,int rowSpan,int height,int width,int fontSize,BaseColor fontColor,BaseColor fgColor) {
		this.nameText=nameText;
		this.colSpan=colSpan;
		this.rowSpan=rowSpan;
		this.height=height;
		this.width=width;
		this.fontSize=fontSize;
		this.fontColor=fontColor;
		this.fgColor=fgColor;
	}
	
	public String getNameText() {
		return nameText;
	}
	public void setNameText(String nameText) {
		this.nameText = nameText;
	}
	
	public int getColSpan() {
		if(colSpan<0){
			return 0;
		}
		return colSpan;
	}
	public void setColSpan(int colSpan) {
		this.colSpan = colSpan;
	}
	public int getRowSpan() {
		if(rowSpan<0){
			return 0;
		}
		return rowSpan;
	}
	public int getFontSize() {
		return fontSize;
	}
	public void setFontSize(int fontSize) {
		this.fontSize = fontSize;
	}
	public void setRowSpan(int rowSpan) {
		this.rowSpan = rowSpan;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	
	
	public BaseColor getFontColor() {
		
		return fontColor;
		
	}
	public void setFontColor(BaseColor fontColor) {
		this.fontColor = fontColor;
	}
	public BaseColor getFgColor() {
		return fgColor;
	}
	public void setFgColor(BaseColor fgColor) {
		this.fgColor = fgColor;
	}
	public int getHorAlignment() {
		return HorAlignment;
	}
	public void setHorAlignment(int horAlignment) {
		HorAlignment = horAlignment;
	}
	public int getVerAlignment() {
		return verAlignment;
	}
	public void setVerAlignment(int verAlignment) {
		this.verAlignment = verAlignment;
	}
	public String getColName() {
		return colName;
	}
	public void setColName(String colName) {
		this.colName = colName;
	}
	public String getFormatStr() {
		return formatStr;
	}
	public void setFormatStr(String formatStr) {
		this.formatStr = formatStr;
	}
	public SimpDataType getDataType() {
		return dataType;
	}
	public void setDataType(SimpDataType dataType) {
		this.dataType = dataType;
	}
	public String getDefValue() {
		return defValue;
	}
	public void setDefValue(String defValue) {
		this.defValue = defValue;
	}
}
